package com.supermarket_project.service;

import com.supermarket_project.common.R;
import com.supermarket_project.pojo.Category;

import java.util.List;

public interface CategoryService {

    R addCategory(Category category);

    List<Category> selectCategory();

    R primaryCategory();

    R pageCategory(int pageNum, int pageSize, Integer fatherId, String primary, String second);

    R secondCategory(Integer categoryId);

    R updateCategory(Category category);

    R queryCategory(Integer categoryId);

    R secondCategoryByPrimary(int fatherId);

    R lockCategory(int categoryId, int status);

    R allCategory();
}
